package com.jack.blog.service;

import com.jack.blog.vo.CategoryVo;

import java.util.List;

public interface CategoryService {

    List<CategoryVo> getCategories(int uid)throws Exception;
    CategoryVo getCategory(int cid) throws Exception;
    void addCategory(int uid, CategoryVo categoryVo) throws Exception;
    void updateCategory(int id, int uid,CategoryVo categoryVo) throws Exception;

    /**
     * 删除cid的分栏并返回该用户的默认分栏cid
     * @param uid
     * @param cid
     * @return defaultCid
     * @throws Exception
     */
    int deleteCategory(int uid, int cid) throws Exception;

}
